package com.example.pestival11_ver3;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class MainActivity extends Activity {
	TodayAPI toa;
	TextView tx;
	String tmp;
	DataSet ds;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        toa= new TodayAPI();
        toa.initSet("%EB%AC%B8%ED%99%94%EC%B6%95%EC%A0%9C");
        
        tx = (TextView)findViewById(R.id.textView1);
       tmp="ffff";

       executePase();
       tx.setText(tmp);
    }
    
    public void executePase()
    {
    	toa.Onparse();
    	for(int i=0;i<TodayAPI.store.size();i++){
    	 ds=TodayAPI.store.get(i);
    	 tmp+=ds._festival_name+"\n";
    	 
    	}
    	
    }
    
    

}
